package com.serkol.abmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 
 * @TableName users
 */
@TableName(value ="users")
public class Users implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String rfid;

    /**
     * 
     */
    private String tell;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    private String status;

    /**
     * 
     */
    private Date createDate;

    /**
     * 
     */
    private Date updateDate;

    /**
     * 
     */
    private String userName;

    /**
     * 
     */
    private String userPass;

    /**
     * 
     */
    private Integer roleId;

    /**
     * 
     */
    private Integer groupType;

    /**
     * 
     */
    private Long deptId;

    private Long carId;

    private Long groupId;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public String getRfid() {
        return rfid;
    }

    /**
     * 
     */
    public void setRfid(String rfid) {
        this.rfid = rfid;
    }

    /**
     * 
     */
    public String getTell() {
        return tell;
    }

    /**
     * 
     */
    public void setTell(String tell) {
        this.tell = tell;
    }

    /**
     * 
     */
    public String getEmail() {
        return email;
    }

    /**
     * 
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 
     */
    public String getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * 
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * 
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * 
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 
     */
    public String getUserPass() {
        return userPass;
    }

    /**
     * 
     */
    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    /**
     * 
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * 
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * 
     */
    public Integer getGroupType() {
        return groupType;
    }

    /**
     * 
     */
    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    /**
     * 
     */
    public Long getDeptId() {
        return deptId;
    }

    /**
     * 
     */
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Users)) return false;
        Users users = (Users) o;
        return Objects.equals(getId(), users.getId()) && Objects.equals(getName(), users.getName()) && Objects.equals(getRfid(), users.getRfid()) && Objects.equals(getTell(), users.getTell()) && Objects.equals(getEmail(), users.getEmail()) && Objects.equals(getStatus(), users.getStatus()) && Objects.equals(getCreateDate(), users.getCreateDate()) && Objects.equals(getUpdateDate(), users.getUpdateDate()) && Objects.equals(getUserName(), users.getUserName()) && Objects.equals(getUserPass(), users.getUserPass()) && Objects.equals(getRoleId(), users.getRoleId()) && Objects.equals(getGroupType(), users.getGroupType()) && Objects.equals(getDeptId(), users.getDeptId()) && Objects.equals(getCarId(), users.getCarId()) && Objects.equals(getGroupId(), users.getGroupId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getName(), getRfid(), getTell(), getEmail(), getStatus(), getCreateDate(), getUpdateDate(), getUserName(), getUserPass(), getRoleId(), getGroupType(), getDeptId(), getCarId(), getGroupId());
    }

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", rfid=" + rfid +
                ", tell='" + tell + '\'' +
                ", email='" + email + '\'' +
                ", status='" + status + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", userName='" + userName + '\'' +
                ", userPass='" + userPass + '\'' +
                ", roleId=" + roleId +
                ", groupType=" + groupType +
                ", deptId=" + deptId +
                ", carId=" + carId +
                ", groupId=" + groupId +
                '}';
    }
}